/**
 * 
 */
package com.arx.interactive.data;

import com.arx.common.GlobalConsts;

/**
 * @author Donald
 */
public final class ItemData {
	/** current number. */
	private short				count;
	/** equipment data. */
	private EquipItemElements[]	equipitem	=
													new EquipItemElements[GlobalConsts.IO_EQUIPITEM_ELEMENT_Number];
	private char				food_value;
	private short				LightValue;
	/** max number cumulable. */
	private short				maxcount;
	private short				playerstacksize;
	private long				price;
	private char				stealvalue;
	/** Frees up memory associated with the EquipItemElements array. */
	public void freeMemory() {
		for (int i = 0; i < equipitem.length; i++) {
			equipitem[i] = null;
		}
		equipitem = null;
	}
	public short getCount() {
		return count;
	}
	public EquipItemElements getEquipItemElement(final int index) {
		EquipItemElements element = null;
		if (index >= 0
				&& index < GlobalConsts.IO_EQUIPITEM_ELEMENT_Number) {
			element = equipitem[index];
		}
		return element;
	}
	public long getPrice() {
		return price;
	}
	public void setCount(final short count) {
		this.count = count;
	}
	public void setPrice(final long val) {
		price = val;
	}
}
